package com.flurry.android;

import android.util.Log;
import com.flurry.android.responses.AppCloudError;
import com.flurry.android.responses.AppCloudLoginResponseHandler;
import java.util.HashMap;
import org.json.JSONException;
import org.json.JSONObject;

final class ed
  implements AppCloudLoginResponseHandler
{
  ed(HashMap paramHashMap, gq paramgq, AppCloudResponseHandler paramAppCloudResponseHandler)
  {
  }

  public final void onError(AppCloudError paramAppCloudError)
  {
    Log.w("FlurryAppCloudRequestManager", "RELOGIN FAILED DUE TO : " + paramAppCloudError.getErrorCode() + " : " + paramAppCloudError.getErrorMessage());
    AppCloudUser.setCurrentUser(null);
    try
    {
      AppCloudResponse localAppCloudResponse = new AppCloudResponse(new JSONObject("{code:\"400\",note:\"invalid user session\"}"));
      this.gc.handleResponse(localAppCloudResponse);
      return;
    }
    catch (JSONException localJSONException)
    {
      localJSONException.printStackTrace();
      return;
    }
    catch (Exception localException)
    {
      localException.printStackTrace();
    }
  }

  public final void onOperationSucceed(AppCloudUser paramAppCloudUser)
  {
    Log.w("FlurryAppCloudRequestManager", "RELOGIN SUCCEED, new APPCLOUD_USER_SESSION = " + FlurryAppCloudRequestManager.UserSession);
    try
    {
      this.ga.remove(FlurryAppCloudRequestManager.ap());
      FlurryAppCloudRequestManager.b(this.ga);
      switch (ef.gd[this.gb.ordinal()])
      {
      case 1:
        ap localap = new ap();
        HashMap[] arrayOfHashMap4 = new HashMap[1];
        arrayOfHashMap4[0] = this.ga;
        localap.execute(arrayOfHashMap4);
        return;
      case 2:
      case 3:
      case 4:
      }
    }
    catch (Exception localException)
    {
      localException.printStackTrace();
      return;
    }
    bt localbt = new bt();
    HashMap[] arrayOfHashMap3 = new HashMap[1];
    arrayOfHashMap3[0] = this.ga;
    localbt.execute(arrayOfHashMap3);
    return;
    fw localfw = new fw();
    HashMap[] arrayOfHashMap2 = new HashMap[1];
    arrayOfHashMap2[0] = this.ga;
    localfw.execute(arrayOfHashMap2);
    return;
    fb localfb = new fb();
    HashMap[] arrayOfHashMap1 = new HashMap[1];
    arrayOfHashMap1[0] = this.ga;
    localfb.execute(arrayOfHashMap1);
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.flurry.android.ed
 * JD-Core Version:    0.6.2
 */